$OpenBSD: patch-src_lib9_dirread_c,v 1.2 2014/03/09 20:26:48 pascal Exp $
--- src/lib9/dirread.c.orig	Fri Feb 28 11:00:07 2014
+++ src/lib9/dirread.c	Sun Mar  9 21:00:01 2014
@@ -25,14 +25,14 @@ mygetdents(int fd, struct dirent *buf, int n)
 	long off;
 	return getdirentries(fd, (void*)buf, n, &off);
 }
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
 	off_t off;
 	return getdirentries(fd, (void*)buf, n, &off);
 }
-#elif defined(__sun__) || defined(__NetBSD__)
+#elif defined(__sun__) || defined(__NetBSD__) || defined(__OpenBSD__)
 static int
 mygetdents(int fd, struct dirent *buf, int n)
 {
